﻿using BingFa.Entity;
using System;
using System.Collections.Generic;
using System.Data.Entity.Core;
using System.Data.Entity.Infrastructure;
using System.Linq;
using System.Web;

namespace BingFa.UI
{
    public class SaveChangesForBF : BingFaTestEntities12
    {
        public override int SaveChanges()
        {
            try
            {
                return base.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)//（OptimisticConcurrencyException）
            {
                //Debug
                //并发保存错误
                return -1;
            }
        }
    }
}